package com.example.peanutsubway.dao;

import com.example.peanutsubway.entity.ChannelSort;
import com.example.peanutsubway.entity.PageInfo;
import com.example.peanutsubway.vo.ChannelSortParentName;
import java.nio.channels.Channel;
import java.util.List;

/**
 * @Author：liyangsong
 * @Version：1.0
 * @Date：2021/10/13-16:46
 * @Since:jdk1.8
 * @Description:
 */


public interface ChannelSortDao {
    /**
     * 查询所有分类
     * @param channelSort
     * @param pageInfo
     * @return
     */
    List<ChannelSortParentName> showChannelSort(ChannelSort channelSort, PageInfo pageInfo);

    /**
     * 渠道条数
     * @param channelSort
     * @return
     */
    Integer count(ChannelSort channelSort);

    /**
     * 显示所有父级名称
     * @param channelSort
     * @return
     */
    List<ChannelSort> ChannelSortfid(ChannelSort channelSort);

    /**
     *  显示父级下的子集
     * @param fid
     * @return
     */
    List<ChannelSort> channelSortSid(Integer fid);

    /**
     * 添加渠道分类
     * @param channelSort
     * @return
     */
    Boolean addChannelSort(ChannelSort channelSort);

    /**
     * 删除渠道分类
     * @param
     * @return
     */
    Boolean deleChannelSort(Integer cid);

    /***
     * 修改渠道分类
     * @param channelSort
     * @return
     */
    Boolean updateChannelSort(ChannelSort channelSort);

    /**
     * 全部分类
     * @param channelSort
     * @return
     */
    List<ChannelSort> allChannelSort(ChannelSort channelSort);
}
